// 存放枚举类型
export enum CATEGORY_TYPES {
  ALL,
  REACT,
  VUE,
  NODE,
}

export interface ISlider {
  url: string;
}

export interface Ilesson {
  title: string;
  video: string;
  poster: string;
  price: number;
  category?: string;
}

export interface ILessons {
  hasMore: boolean; // 有没有更多数据
  loading: boolean; // 默认没有正在加载
  offset: number; //
  limit: number;
  list: Ilesson[]; // 当前已经显示到哦页面的额课程有哪些
}

export interface IHomeState {
  currentCategory: CATEGORY_TYPES;
  sliders: ISlider[];
  lessons: ILessons;
}
